xfs: fix integer truncation in xfs_bmap_remap_alloc
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2017 23:45:52 +0000 (16:45 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:53:28 +0000 (02:53 +0000)
commit8a71d6f8a109430f68268c5c5ef386ef712ac548
treeca2013037d86e87150ba7221236e6d9868cfb765
parenta1a9fa1a400e8e779b5ee54db249a68b4a604780
xfs: fix integer truncation in xfs_bmap_remap_alloc

commit 52813fb13ff90bd9c39a93446cbf1103c290b6e9 upstream.

bno should be a xfs_fsblock_t, which is 64-bit wides instead of a
xfs_aglock_t, which truncates the value to 32 bits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_bmap.c